home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
swagg_m.zip
/
KEYBOARD.SWG
/
0062_Keyboard Port.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-01-27
|
651b
|
24 lines
{
> Hello all, I am looking for a scancode for the tab key. I am desperate!
> Please, Any code would be apreciated! Help! Netmail if you wish (1:241/99)
I saw Richard Brown wrote you a reply as a testing program, but it works for
ASCII codes not SCAN codes so :
}
Var
old : Byte;
Begin
WriteLn ('Press any key to begin and ESCAPE to exit.');
ReadLn;
old:=$FF;
While Port[$60]<>1+$80 Do {Until ESCAPE is released, 1 is ESC scan-code}
Begin
If (old<>Port[$60]) And (Port[$60]<$80) Then
Begin
old:=Port[$60];
Writeln('Scan code ',old,' pressed - release code is ',old+$80);
End;
End;
End.